<template>
  <div>
    <a href="#" @click="switchFn('/home')">主页</a>&nbsp;
    <router-link to="/list">分类</router-link>&nbsp;
    <a href="#/GoodList">订单</a>&nbsp;
    <a href="#" @click="switchNFn('maie')">我的</a>&nbsp;
  <div>
    <router-view></router-view>
  </div>
  </div>
</template>

<script>
export default {
  methods:{
    switchFn(path){
      this.$router.push({
        path
      })
    },
    switchNFn(name){
      this.$router.push({
        name
      })
    },
  }
}
</script>

<style>

</style>